package com.xpd.spring.demo.web;

import com.xpd.spring.demo.biz.IuserBiz;
import com.xpd.spring.demo.biz.UserBiz;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Data
@Controller
public class UserController {
    //改成动态代理之后要使用接口注入
    @Autowired
    private IuserBiz userBiz;
    public void findByid(int id){
        /*System.out.println(1/0);
        为了测试异常增强
        * */
        System.out.println("=======findByid=========");
    }
    public void delByid(int id){
        System.out.println("=======delByid=========");
    }
}
